Compatibility with php versions < 5.3