Fixing error on older php versions