public function hasStatementForDate($date)
    {
        if (is_string($date)) {
            $date = new \DateTime($date);
        }

        return null !== $this->getStatementForDate($date);
    }
public function hasStatementForDate($date)
    {
        if (is_string($date)) {
            $date = new \DateTime($date);
        }

        return null !== $this->getStatementForDate($date);
    }
public function hasStatementForDate ( $ date ) { if ( is_string ( $ date ) ) { $ date = new \ DateTime ( $ date ) ; } return null !== $ this -> getStatementForDate ( $ date ) ; }
Checks if a statement with given date exists.

@param string|\DateTime $date
@return bool
Checks if a statement with given date exists .