code: private boolean isValid(Map<String, Object> capability) {
          return capability != null && capability.containsKey(BUNDLE_NAME);
      }
docs: /*
  Checks the validity of a capability by checking for not-null reference and the availability of CFBundleIdentifier
  and CFBundleName keys.