'is prefix mask nex_thop exist'

def is_prefix_exist(self, static_route, version):

    if (static_route is None):
        return False
    if (self.next_hop and self.nhp_interface):
        return ((static_route['prefix'].lower() == self.prefix.lower()) and (static_route['maskLength'] == self.mask) and (static_route['afType'] == version) and (static_route['ifName'].lower() == self.nhp_interface.lower()) and (static_route['nexthop'].lower() == self.next_hop.lower()))
    if (self.next_hop and (not self.nhp_interface)):
        return ((static_route['prefix'].lower() == self.prefix.lower()) and (static_route['maskLength'] == self.mask) and (static_route['afType'] == version) and (static_route['nexthop'].lower() == self.next_hop.lower()))
    if ((not self.next_hop) and self.nhp_interface):
        return ((static_route['prefix'].lower() == self.prefix.lower()) and (static_route['maskLength'] == self.mask) and (static_route['afType'] == version) and (static_route['ifName'].lower() == self.nhp_interface.lower()))
