Check if filepath exists and is a file. Note this is a fork of file-exists dpenedency with some ammendments.