Check file availability befor