Refactor check statements into a module level function
Refactor check statements into a module level function

This way any list of statements can be checked.

johnbachman/indra,johnbachman/belpy,sorgerlab/indra,johnbachman/belpy,pvtodorov/indra,bgyori/indra,johnbachman/indra,pvtodorov/indra,sorgerlab/belpy,sorgerlab/indra,johnbachman/belpy,jmuhlich/indra,johnbachman/indra,sorgerlab/indra,jmuhlich/indra,jmuhlich/indra,bgyori/indra,sorgerlab/belpy,pvtodorov/indra,bgyori/indra,sorgerlab/belpy,pvtodorov/indra