Added array type check for animateProps