From what I can tell, it looks like it's necessary to run this check in both places.