Checking for nulls and empty strings, rather than strict comparison.