Checking parse calls for object type

Also added error handling [line 94]