public function addCheck($check, $top = false)
    {
        if (!in_array($check, $this->checks)) {
            if ($top) {
                array_unshift($this->checks, $check);
            } else {
                $this->checks[] = $check;
            }
        }
    }
public function addCheck($check, $top = false)
    {
        if (!in_array($check, $this->checks)) {
            if ($top) {
                array_unshift($this->checks, $check);
            } else {
                $this->checks[] = $check;
            }
        }
    }
public function addCheck ( $ check , $ top = false ) { if ( ! in_array ( $ check , $ this -> checks ) ) { if ( $ top ) { array_unshift ( $ this -> checks , $ check ) ; } else { $ this -> checks [ ] = $ check ; } } }
Add a check.

@param string $check
@param bool   $top
Add a check .