public function isBase64()
    {
        if (!is_string($this->data)) {
            return false;
        }

        return base64_encode(base64_decode($this->data)) === $this->data;
    }
public function isBase64()
    {
        if (!is_string($this->data)) {
            return false;
        }

        return base64_encode(base64_decode($this->data)) === $this->data;
    }
public function isBase64 ( ) { if ( ! is_string ( $ this -> data ) ) { return false ; } return base64_encode ( base64_decode ( $ this -> data ) ) === $ this -> data ; }
Determines if current source data is base64 encoded

@return boolean
Determines if current source data is base64 encoded