Issue #3301390 by vlad.dancer, owenbush: Use isEmpty() method instead checking output with empty function