Returns true when the path exists and is a file. A folder, or a missing path, returns false.

Parameters

string
required
The path to test.

Returns

boolean
true if the path is a file.

Example