Check if exercise exist before adding it to list of assignments