You inverted the isnullorempty test, dummy!