Please also check if guard has the Guard trait with TraitOrDefault and a null check. You never want to chain call methods directly on TraitOrDefault.