Add function to check files existences