Fix PHP 5.4 incompatibility (Can't use method return value in write context)