file_get_contents() call on directory

We ran into an issue with the module that would cause an almost blank page containing gibberish like 'ÿÿÿà'. The is_dir() check fixes this problem.