Use concise method of checking prototype of given input.