Guards your methods against null.