$user_id = isset( $this->author->User ) && $this->author->User instanceof User ? $this->author->User->id : 0;