Simplified the isApplicableTo method