Compatibility for older PHP versions.