Added function arrayOnProperty