pdf: Make access check (for >=1 valid ticket) more efficient.