fixed model array check