Double assignment of $value. Move the condition to the parent if