Removing warning messages.
Fixing array_keys warning.