is_file()
The is_file() function checks if a given path is a file. This is useful for validating file paths.