Update view.php

Only extract data if it's available
Unset the data key from $options to prevent errors with objects when converting the passed options to an object