Guard against setting cookies when data already outputted