Update Hooks.php

Bug :
it was throwing fatal error if specified class or class function does not exist in file

change 
1.there should be require_once which moved below the !file_exists  if statement
2. change in line from 195 to 204

Solve
now it will return false