fixed bug in Model#hasOne was incorrectly calling attribute_exists as opposed to has_attribute