Added boolean functions to the PHP API