CA-144658: Use List.all to get result

As comments by simon, using List.all to replace for all function I wrote.

Signed-off-by: Cheng Zhang <cheng.zhang@citrix.com>