original_string: private function uniqueSlug($bean, $property_name, $slug) {
  		$other = \R::findOne($bean->getMeta('type'), $property_name . ' = ? ', [ $slug ] );
  		if ($other) {
  			if ($other->id == $bean->id) {
  				return true;
  			} else {
  				return false;
  			}
  		} else {
  			return true;
  		}
  	}
code: private function uniqueSlug($bean, $property_name, $slug) {
  		$other = \R::findOne($bean->getMeta('type'), $property_name . ' = ? ', [ $slug ] );
  		if ($other) {
  			if ($other->id == $bean->id) {
  				return true;
  			} else {
  				return false;
  			}
  		} else {
  			return true;
  		}
  	}
code_tokens: private function uniqueSlug ( $ bean , $ property_name , $ slug ) { $ other = \ R :: findOne ( $ bean -> getMeta ( 'type' ) , $ property_name . ' = ? ' , [ $ slug ] ) ; if ( $ other ) { if ( $ other -> id == $ bean -> id ) { return true ; } else { return false ; } } else { return true ; } }
docstring: Checks if the slug of a bean is unique
  
  @param bean		$bean			The bean to check the slug for.
  @param string	$property_name	The name of the property to check the slug for.
  @param string	$slug			The slug to check.
  
  @return boolean	Returns true if the slug is unique, false otherwise.
docstring_tokens: Checks if the slug of a bean is unique