removing boolval() vall as it is only on php5.5
semantic cleanup