How to find a PDF is password Protected or not

Hi Team,

Is there any way I can understand before reading a PDF whether it is protected or not?
There is a scenario where I will get a list of PDF files few with password, few without password. If password protected I need to ignore them and look for PDF without password and need to move to another folder