Backward compatibility with older PHP versions