Added null ref check on @Model