isExistingProfile(profile) {
    const profileDirectoriesPaths = this.getProfileDirectoriesPaths();
    return profileDirectoriesPaths.some(
      profileDirectoryPath => profileDirectoryPath === profile.directoryPath,
    );
  }
/**
   * Checks if the given profile exists in the game directory.
   *
   * @param {Profile} profile A profile to check existance for.
   *
   * @returns {boolean} Whether the profile exists or not..
   */
Checks if the given profile exists in the game directory.
@param {Profile} profile A profile to check existance for.

@returns {boolean} Whether the profile exists or not
Checks if the given profile exists in the game directory . @param { Profile } profile A profile to check existance for . @returns { boolean } Whether the profile exists or not
isExistingProfile(profile) {
    const profileDirectoriesPaths = this.getProfileDirectoriesPaths();
    return profileDirectoriesPaths.some(
      profileDirectoryPath => profileDirectoryPath === profile.directoryPath,
    );
  }
isExistingProfile ( profile ) { const profileDirectoriesPaths = this . getProfileDirectoriesPaths ( ) ; return profileDirectoriesPaths . some ( profileDirectoryPath => profileDirectoryPath === profile . directoryPath , ) ; }
Checks if the given profile exists in the game directory.
Checks if the given profile exists in the game directory .