Can you combine this conditional with the above, so we only check `applied` once?