Checks if a path is valid without throwing.
Returns true if valid, false otherwise.
true
false
bool isValidPath(String path);