perhaps swap the conditional order so a missing xattr doesn't cause a segfault