Add function file_exists.rb

Simple function that check if a file exists or not