fix PHP warning when value is boolean