Adding safety check for fatal error thrown if stream_get_contents() is false.