Code:
var coffee = new Coffee(); if(coffee.empty) {coffee.refill();} else {coffee.drink();}