return if file is nil

related to #25