refs #824: Type-aware condition check (violation of PHP practice)