Check if book property exists before trying to assign it