Add helper method to PortOrRange