Fixed compatibility with oldests php versions