Implemented exists. Which is a function to check if a file exists