Implement isNPC check

With a hopeful addition of checking for shopkeepers, if my PR is
accepted.