Properly handling comparision to an empty string in IF block