Returns whether or not the execution is in a static context.
Easy to implement in projects I maintain.