Should this not be transformedIf or remove the NOT from the condition?