Add hasLiked function