I need to check if the modifier.name for example "Subdivison" on the top of the modifiers stack
if modifier.name position == 0:
print('Modifier "Subdivison" at the beginning of the stack')
else:
print('Modifier "Subdivison" somewhere in the stack')
something like this