this can be done as

      def ssh_key_management_enabled
         settings.plugins['ldap_admin'].include?('ssh_key_management') && settings.plugins['ldap_admin']['ssh_key_management'] == true
      end