Checking if ($qt(a)) is not a very failsave method with custum identifiers called qt.

Admittingly it's a very small odd that someone has a qt alias loaded.