use empty to check for null and ''