This comment is incorrect on two counts: (1) the variable location is not an array, (2) the contents of the variable location contains the full path to the extracted app, not just the final folder 'one_folder'.  The correct behavior is to ensure that that string 'one_folder' is part of the string variable 'location'.