yay for centralizing that check into a separate function!