Use ISNA(arg), returns TRUE if your arg returned/is #N/A