Removed initial superfluous checks

I have removed these superfluous checks because jQuery documentation says:
>This method can act on a jQuery object that has selected individual form elements, such as &lt;input&gt;, &lt;textarea&gt;, and &lt;select&gt;. However, it is typically easier to select the <form> tag itself for serialization

But your checks restricts elements to only &lt;form&gt; and do not foresee multiple elements.