Now use 'instanceof' keyword instead of checking for existing methods