implement `isContains` method, see #3