added serial port exists funtion