should this condition be in toArray() method?, seems more like it should be in a validate function of sorts..