`'.inf' === $scalarLower` sounds like a very good idea → let's create a follow-up? :)