Replaced a empty check with a better check