fixed a php55 only bug - per codereview request