Check if filepath exists and is a file