Add condition for no ports config