preg_match returns int, wrong triple equality