A prosecutor may file a special allegation that the offender or an accomplice was armed with a firearm when the offender committed the alleged offense. If a special allegation has been filed and the court finds that the offender committed the alleged offense, the court shall also make a finding whether the offender or an accomplice was armed with a firearm when the offender committed the offense.