[fix] compatibility with older php versions