Separated logic for the hasHints method.