Remove redundant if() statement.
Fix function declaration code style.
Always cast returned cached Vary headers to an array.
Remove extra newline leftover from refactoring $key.