No need to check for null before an instanceof; the instanceof keyword returns false when given a null argument.