Ported over the ``has_item`` call.

Fixes #1822

Review please? @danielgtaylor