Update new code to use `defined`