this should just be `if (!empty($data[$model->alias][$options['fields']['dir']])) {`