hasOutput bugfix