ifEmpty to support collections, maps and arrays