fixed isUnique bug where an empty array was checked via is_null