Used isTag method from previous commit (unmentioned).