Fixes #5324: Use ifvarclass instead of basic class syntax
Merge pull request #92 from VinceMacBuche/bug_5324/ifvarclass

Fixes #5324: Use ifvarclass instead of basic class syntax