Check if the given path is a file.
The path to check.
A promised boolean indicating if the path is a file.
Check if the given path is a file.