Streamline calculation of allowAnimation boolean.