Restoring compatibility with php version < 5.5