Refactor exception existance validation to make HHVM happy

i improved it now