Resolve older version of PHP issues