Why do we need the case on line 277 if we have this? This seems faster to check.