added friends search and friends destroy

Use a guard clause instead of wrapping the code inside a conditional expression.