Internal Server Error

Attempt to read property "id" on bool