Added HEAD method to check for file existence