public static function hasChildren($postRepository, $language, $postId)
	{
		$menuCount = $postRepository->countBy(array(
			'lang' => $language,
			'parent' => $postId
		));

		if ($menuCount > 0) {
			return true;
		}

		return false;
	}
public static function hasChildren($postRepository, $language, $postId)
	{
		$menuCount = $postRepository->countBy(array(
			'lang' => $language,
			'parent' => $postId
		));

		if ($menuCount > 0) {
			return true;
		}

		return false;
	}
public static function hasChildren ( $ postRepository , $ language , $ postId ) { $ menuCount = $ postRepository -> countBy ( array ( 'lang' => $ language , 'parent' => $ postId ) ) ; if ( $ menuCount > 0 ) { return true ; } return false ; }
Returns bool value whether item is containing children.
@param $postRepository
@param $language
@param $postId
@return bool
Returns bool value whether item is containing children .