public function isBinding(array $binding)
    {
        if ( ! empty($binding))
        {
            // A binding is valid only when the key is not a number
            $keys = array_keys($binding);

            return ! is_numeric(reset($keys));
        }

        return false;
    }
public function isBinding(array $binding)
    {
        if ( ! empty($binding))
        {
            // A binding is valid only when the key is not a number
            $keys = array_keys($binding);

            return ! is_numeric(reset($keys));
        }

        return false;
    }
public function isBinding ( array $ binding ) { if ( ! empty ( $ binding ) ) { // A binding is valid only when the key is not a number $ keys = array_keys ( $ binding ) ; return ! is_numeric ( reset ( $ keys ) ) ; } return false ; }
A binding should always be in an associative
form of a key=>value, otherwise we will not be able to
consider it a valid binding and replace its values in the query.
This function validates whether the binding is valid to be used.

@param  array $binding
@return boolean
A binding should always be in an associative form of a key = > value otherwise we will not be able to consider it a valid binding and replace its values in the query . This function validates whether the binding is valid to be used .