checked for array having 1 element