Return false when resource path does not match resources path