Any way of not to render the pane in panel using custom module?
What you're looking for is called a access plugin, those are how Page manager (and by extension Panels) control both access and visibility settings.

This question: What are Ctools plugin (content type, access, etc), and how does one create them? has a lot more details and implementation examples.