define $has_competences variable