braces around the instanceof check are not needed