Correct logic in check Archlinux function