Moving an if out of the free() function.
Allocate/free methods are now delegated to Array