Make sure things are defined before using them