nit: we use single quotes for strings

Let's also add a comment explaining why we're doing this detection. And while you're doing a comment, try to do sentences as much as possible.