Return module configuration loaded from separate file or None

def get_module_config(self, name):
    """
     Return module configuration loaded from separate file or None
    """
    if self.exists("modules"):
      if name in self._json["modules"] and not isinstance(self._json["modules"][name], str):
        return self._json["modules"][name]
    return None