Grammatical pattern: it + VERB + WH-word/whether/if + CLAUSE
The verbs in the list below follow this pattern.
help, hurt, matter
See also the full discussion of the pattern it + VERB + WH-word/whether/if + CLAUSE.