Added property existence check

The model assumed the table has a field named 'checked_out'. But this might cause an error being thrown trying to access a non-existing property with tables not having this field.