follow up r60916 - Use getType instead of instanceOf as suggested by Simetrical