If a person who is under sentence of penal servitude or imprisonment for 3 years or more attempts to commit—
(a) a capital murder, he or she shall, on conviction on indictment, be sentenced to death; or
(b) a non-capital murder, he or she shall, on conviction on indictment, be sentenced to life imprisonment.