これでいいだろ。超スッキリだ。
if( check($a, $b, $n) ) {
}



function check($a, $b, $n) {
中身かけ
}