Update comment
Fix Name found at index 0 throws an error
Checks for existing middleware names (collision)