existsOrNull

Checks if the receiver File exists and returns it, or null if it does not exist.

Receiver

File The file to check.

Return

The file if it exists, null otherwise.