can you add a check for existence of the option please ? Otherwise, you'll end up potentially  with php notice triggers.