removed php 5.4 syntax to support older php versions