removed redundant initial boolean value for status in both array & object checks