fixed issue #1

check if array