switch_file_exists returns switch_status_t so you cannot assume it returns a true value since success is 0