Minor performance improvement and avoiding a warning
Example gif