I know this code was already there, but wouldn't it make sense to use symbol comparison instead? Otherwise, it LGTM.