Don't need a null check here, instanceof already checks for null