protected function optionMerge($mergeKeys, $options)
{
if (!isset($options[$mergeKeys["short"]]) && !isset($options[$mergeKeys["long"]])) {
$return = null;
} elseif (isset($options[$mergeKeys["short"]]) && !isset($options[$mergeKeys["long"]])) {
$return = $options[$mergeKeys["short"]];
} elseif (!isset($options[$mergeKeys["short"]]) && isset($options[$mergeKeys["long"]])) {
$return = $options[$mergeKeys["long"]];
} elseif (is_array($options[$mergeKeys["short"]]) && !is_array($options[$mergeKeys["long"]])) {
$return = $options[$mergeKeys["short"]];
$return[] = $options[$mergeKeys["long"]];
} elseif (!is_array($options[$mergeKeys["short"]]) && is_array($options[$mergeKeys["long"]])) {
$return = $options[$mergeKeys["long"]];
$return[] = $options[$mergeKeys["short"]];
} elseif (!is_array($options[$mergeKeys["short"]]) && !is_array($options[$mergeKeys["long"]])) {
$return = array($options[$mergeKeys["long"]], $options[$mergeKeys["short"]]);
} elseif (is_array($options[$mergeKeys["short"]]) && is_array($options[$mergeKeys["long"]])) {
$return = array_merge($options[$mergeKeys["long"]], $options[$mergeKeys["short"]]);
}
return $return;
}