So I\'m trying to see if there is a "better" way to optimize the way I am writing this little piece of code snippet.
Right now, my piece of snippet is this: