Checking for non-values in both cases