public function allowEmptyArray($field, $when = true, $message = null)
    {
        return $this->allowEmptyFor($field, self::EMPTY_STRING | self::EMPTY_ARRAY, $when, $message);
    }
public function allowEmptyArray($field, $when = true, $message = null)
    {
        return $this->allowEmptyFor($field, self::EMPTY_STRING | self::EMPTY_ARRAY, $when, $message);
    }
public function allowEmptyArray ( $ field , $ when = true , $ message = null ) { return $ this -> allowEmptyFor ( $ field , self :: EMPTY_STRING | self :: EMPTY_ARRAY , $ when , $ message ) ; }
Allows a field to be an empty array.

This method is equivalent to calling allowEmptyFor() with EMPTY_STRING +
EMPTY_ARRAY flags.

@param string $field The name of the field.
@param bool|string|callable $when Indicates when the field is allowed to be empty
Valid values are true, false, 'create', 'update'. If a callable is passed then
the field will allowed to be empty only when the callback returns true.
@param string|null $message The message to show if the field is not
@return $this
@since 3.7.0
@see \Cake\Validation\Validator::allowEmptyFor() For detail usage
Allows a field to be an empty array .