Added empty check to 'unique'
Modified comments