def isSymbolNumber(command, sortedSymbols):
    """ isSymbolNumber checks whether given command has Stock Symbol number and it is in the loaded Stock Symbols. """
    return ((len(command.strip()) > 0) and command.strip().isdigit() and int(command.strip()) < len(sortedSymbols))