Better method to detect if port is data port