Only getting sample data model when needed
Handling type errors as well
Check if there actually is something selected.