Added hasFavorite function for android.