Fixed logical error for callback of file_exists.