Fix foreach if $tickets = empty + only show active