Only capture block if it's present