public function can_delete() {
        if ($this->get_item_uses_count()) {
            return false;
        }
        if (empty($this->courseid)) {
            if ($this->get_course_uses_count()) {
                return false;
            }
        }
        return true;
    }
public function can_delete() {
        if ($this->get_item_uses_count()) {
            return false;
        }
        if (empty($this->courseid)) {
            if ($this->get_course_uses_count()) {
                return false;
            }
        }
        return true;
    }
public function can_delete ( ) { if ( $ this -> get_item_uses_count ( ) ) { return false ; } if ( empty ( $ this -> courseid ) ) { if ( $ this -> get_course_uses_count ( ) ) { return false ; } } return true ; }
Checks if outcome can be deleted.

@return bool
Checks if outcome can be deleted .