Refactor checks using Variable::isStlType()