Null check parent attribute first