Check out this thread
TL;DR: isapplicable applicable is probably your best approach for this
isapplicable
applicable