while ( $query->param() ) { # .. snip.. (delete if checked) }