Adding array check for parent classes