Use List.exists instead of folding

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>