fix for passing empty array as brackets