Use node.loc.something.is? instead of node.loc.something.source ==