converting nil values to :NULL if operator is assignment