Added array check.