Bit of defensive programming in consumer