Refactored \ifnamesequal