How to conditionally check for author archive when is_author() fails to work because the author has no posts

How to conditionally check for author archive when is_author() fails to work because the author has no posts

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)