Fixes the bug introduced in my last commit
Added a condition to check if the arg is an instance of Symbol.
Corrected both new and old assumptions.