/** * Returns true when the competency has user competencies. * * This is useful to determine if the competency, or part of it, should be locked down. * * @return boolean */ public function has_user_competencies() { return user_competency::has_records_for_competency($this->get_id()) || user_competency_plan::has_records_for_competency($this->get_id()); }