getIDs() forgot to check for empty data, fixes #3