Attempt to fix PHP error: Can't use method return value in write context.