Fix bug when no options are set

My original code through an error when not options were set.
The code is now checking to make sure options are set before
trying to run the onAdjust callback.