Just for consistency with most other OS code, 'if not ports' instead of comparing to empty list.