Changes to book type
Added required checks to get rid of notice errors for unset array values