check whether file exists or not