我如何缩短以下语句
ratingsExisting(): boolean { return ( this.fromAPIData.book && this.fromAPIData.book.misc && this.fromAPIData.book.misc.ratings && this.fromAPIData.book.misc.ratings.length > 0 ); }
所以如果有任何属性是 null
null