Func to check if photo already in favs
refs #542