Added documentation.
Check if we actually have an array.
A loop optimalization.