Add hasOutput method