Added defaultIfEmpty function.