Removing usage of boolval function (Php >= 5.5)