Added check for empty argument