Support for older php versions