Avoid empty(foo()) statement