Classes/Controller/AddressController.php
private function checkIfAddressExists($address)
    {
        $oldAddress = $this->addressRepository->findOneByEmailIgnoreHidden( $address );

        return isset($oldAddress) && $oldAddress ? $oldAddress : null;
    }
private function checkIfAddressExists($address)
    {
        $oldAddress = $this->addressRepository->findOneByEmailIgnoreHidden( $address );

        return isset($oldAddress) && $oldAddress ? $oldAddress : null;
    }
private function checkIfAddressExists ( $ address ) { $ oldAddress = $ this -> addressRepository -> findOneByEmailIgnoreHidden ( $ address ) ; return isset ( $ oldAddress ) && $ oldAddress ? $ oldAddress : null ; }
checks if address already exists
@param  string $address address to check
@return \TYPO3\CMS\Extbase\Persistence\QueryResultInterface|array returns the already existing address or NULL if it is new
checks if address already exists