Moved assoc into inside if, hopefully make it even more readable.