Refactoring pinnies check into method