Are there any best practices for handling file existence checks in PHP?

When checking for the existence of a file in PHP, it is recommended to use the `file_exists()` function along with absolute file paths to ensure accurate results. Additionally, it is good practice to handle any potential errors or exceptions that may occur during the file existence check.

$file_path = '/path/to/file.txt';

if (file_exists($file_path)) {
    echo 'File exists!';
} else {
    echo 'File does not exist.';
}