def check_hypervisor_availability(available_images, fname, hyp_type):
  """
  This routine checks if a given hypervisor is present in given list of images
  in FVM.

  Args:
    available_images(str): JSON of response of enumerating hypervisors in FVM.
    fname(str): Name of file to be searched in response.
    hyp_type(str): Hypervisor type.

  Returns:
    (boolean): True if it is present, False otherwise.

  """
  for i in available_images.get(hyp_type, ""):
    if i["filename"] in fname:
      return True
  return False