New methods for checking that a path corresponds to a file