Gravity: Checks if a file exists and adds more checks on the file