You should use the propertyaccess component to better handle errors