public static function add($array, $key, $value, $opr = null)
    {
        if (!self::has($array, $key, $opr)) {
            self::set($array, $key, $value, $opr);
        }

        return $array;
    }
public static function add($array, $key, $value, $opr = null)
    {
        if (!self::has($array, $key, $opr)) {
            self::set($array, $key, $value, $opr);
        }

        return $array;
    }
public static function add ( $ array , $ key , $ value , $ opr = null ) { if ( ! self :: has ( $ array , $ key , $ opr ) ) { self :: set ( $ array , $ key , $ value , $ opr ) ; } return $ array ; }
Add an element to an array using "dot" notation if it doesn't exist.

@param array  $array Array to be evaluated
@param string $key   Key
@param string $opr   Notation like 'dot'
@param

@since 3.0.0

@return array
Add an element to an array using dot notation if it doesn t exist .