2nd step. Add check before run the statement.