Check if there is no gateway to use.

Fix typo, improve docstrings.