Does anyone know why I'm getting errors trying to create an expression within an Apply to Each loop?

Here is the expression I am using:
if(items('Apply_to_each')?['FormType/Value'] = null, 'standard', items('Apply_to_each')?['FormType/Value'])
I know I have created expressions successfully in the past using dynamic content, but this particular application has baffled me.
Thanks,
Renee