A little defensive programming...