Check file before source it