def isPortAvailable(port='<STR_LIT>'):
isPortAvailable = serial.tools.list_ports.grep(port)<EOL>try:<EOL><INDENT>next(isPortAvailable)<EOL>available = True<EOL><DEDENT>except StopIteration:<EOL><INDENT>available = False<EOL><DEDENT>return available<EOL>
Checks whether specified port is available.

Source code derived from @lqdev suggestion per #38

Args:
    port: Serial port location i.e. 'COM1'. Default is /dev/ttyUSB0

Returns:
    available: Boolean value indicating presence of port