<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def check_valid(self, get_params):
 """ see if the if condition for a block is valid """

        if self.commands._if:
            return self.commands._if.check_valid(get_params)