add fallback for older PHP