Fix hasPhoto