array lenght check; var names made camelCase