Trying a new way of checking if there are no piped inputs.

@gtrogers @moonpxi