Fix for earlier PHP versin