Filter list before mapping it
Make obvious that this is a nested conditional
Make obvious that what we care about is the presence of sdkroot
Write the positive case first
Add newlines between methods
Remove code that doesn't do anything