Null checks for unknown files and folders.