if its nil we don't need to do anything

- we only apply this logic to certain platforms